$(function () {
    $("#express-list").bootstrapTable({
        url: "/admin/views/express/list.do",//数据地址
        striped: true,//是否显示行的间隔
        pageNumber: 1,//初始化加载第几页
        pagination: true,//是否分页
        sidePagination: 'server',
        pageSize: 5,
        pageList: [5, 10, 20],
        showRefresh: true,
        queryParams: function (params) {
            return {
                offset: params.offset,
                pageNumber: params.limit
            };
        },
        columns: [
            {
                title: "编号",
                field: "id",
                sortable: false
            },
            {
                title: "单号",
                field: "number",
                sortable: false
            },
            {
                title: "姓名",
                field: "username",
                sortable: false
            },
            {
                title: "电话",
                field: "userphone",
                sortable: false
            },
            {
                title: "快递公司",
                field: "company",
                sortable: false
            },
            {
                title: "取件码",
                field: "code",
                sortable: false
            },
            {
                title: "入库时间",
                field: "intime",
                sortable: false
            },
            {
                title: "出库时间",
                field: "outtime",
                sortable: false
            },
            {
                title: "状态",
                field: "status",
                sortable: false
            },
            {
                title: "录入人电话",
                field: "sysphone",
                sortable: false
            }
        ]
    });
});